package entity.salary;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_insurance")
public class Insurance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("sa_id")
    private Integer saId;

    /**
     * 险种名称
     */
    @TableField("insurance_name")
    private String insuranceName;

    /**
     * 险种类型 1社保0公积金
     */
    @TableField("insurance_type")
    private Integer insuranceType;

    /**
     * 险种状态1.禁用0启用
     */
    @TableField("insurance_status")
    private Integer insuranceStatus;

    /**
     * 公司缴纳比例
     */
    @TableField("com_proportion")
    private String comProportion;

    /**
     * 个人缴纳比例
     */
    @TableField("ind_proportion")
    private String indProportion;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
